package com.jenkins.test.proxy.gov.dto.request;

import com.jenkins.test.proxy.gov.dto.GovRequest;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @version V1.0.0
 * @ClassName: {@link UploadEnergyRequest}
 * @Description: 基础信息上传
 * @author: Lanzhou
 * @date: 2022/1/24 10:41
 * @Copyright:2020 All rights reserved.
 */
@Setter
@Getter
@ToString
public class UploadEnergyRequest extends GovRequest {

    /**
     * "0ef6ecea08bf84c7b639c3e9b84ed546", // 从服务地址发布平台获取(必填)
     */
    private String deviceId;
    /**
     * "91330000573973053F",//统一社会信用代码(必填)
     */
    private String enterpriseCode;

    /**
     * 采集数据项配置(必填)
     */
    private List<Data> data = new ArrayList<>();

    @Setter
    @Getter
    @ToString
    static class Data {
        /**
         * "04-01-0000-040200-30",
         */
        private String dataCode;
        /**
         * 123.45,//数据项的值，数据单位按“NECC-NHJC-02”要求
         */
        private String dataValue;
        /**
         * 1,
         */
        private Integer inputType;
        /**
         * 1,//数据采集频率，0 实时、1 日、2 月、3 年
         */
        private Integer statType;
        /**
         * "2014-10-09 00:00:00",//数据统计周期的起始时间
         */
        private String statDate;
        /**
         * "2014-10-10 21:58:46",
         */
        private String uploadDate;
        /**
         * 1,
         */
        private Integer scope;
        /**
         * true
         */
        private Boolean valid;
    }


}
